/*
 * BaseSort.h
 *
 *  Created on: 2015年7月5日
 *      Author: Lor
 */

#ifndef BASESORT_H_
#define BASESORT_H_
#include <vector>
#include <iostream>
#include <string>

using namespace std;

class BaseSort {
public:
	vector<int> raw_data;
	vector<int> sorted_data;
	int cal_counter;
	string sort_name;

public:
	BaseSort();
	BaseSort(vector<int>);
	virtual ~BaseSort();

	void printRawData();
	void printSortedData();
	static void printData(vector<int> data) {
		for(vector<int>::iterator iter=data.begin(); iter != data.end(); iter++)
			cout << *iter << " ";
		cout << endl;
	}

protected:
	void childInit(string);

};
#endif /* BASESORT_H_ */
